package com.yxzc.chapter14

/**
 *
 * @author wu
 * @create 2021-12-09-15:08 
 */
object Test {
  def main(args: Array[String]): Unit = {
    fbn(2)

  }
  def fbn(n:BigInt):BigInt = {
    if( n==1 || n==2)1
    else fbn(n-1) + fbn(n-2)
  }
}
